﻿///<reference path="/js/MicrosoftAjax.js"/>
///<reference path="/js/doo.all.debug.js"/>
///<reference path="/js/imdoo.js"/>
Type.registerNamespace("ImDoo.Controls");

ImDoo.Controls.newact = function (elem) {
    ImDoo.Controls.newact.initializeBase(this, [elem]);
}

ImDoo.Controls.newact.prototype = {
    initialize: function () {
        ImDoo.Controls.newact.callBaseMethod(this, 'initialize');

    },

    initevents: ["updated"],

    htmlfile: 'newact.htm',
    onChildsReady: function () {

    },

    saveAct: function (sender) {
        var newdata = this.getBindData().newdata;
        UC.Union(newdata);
        var _t = this;
        sender.disabled = true;
        imdoo.svr.vol.UpdateAct(newdata, function (result) {
            _t.onupdated(_t);
            sender.disabled = false;
        }, function (err) {
            alert(err.get_message());
        });
    },

    dispose: function () {


        //在此处添加自定义释放操作
        ImDoo.Controls.newact.callBaseMethod(this, 'dispose');
    }
}

ImDoo.Controls.newact.registerClass('ImDoo.Controls.newact', Doo.UserControlBase);